@extends('admin::layouts.master')
@section('title') 商品列表 @endsection
@section('tab')
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body layui_overflow_y ">
                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>商品名称</th>
                                <th>副标题</th>
                                <th>所属分类</th>
                                <th>状态</th>
                                <th>创建时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            @if(!empty($arr_data['data']))
                                @foreach($arr_data['data'] as $key=>$value)
                                    <tr>
                                        <td>{{$value['id']}}</td>
                                        <td>{{$value['name']}}</td>
                                        <td>{{$value['title']}}</td>
                                        <td>{{$value['cate']['name']}}</td>
                                        <td>@if($value['status'] == 1) 上架 @else 下架 @endif</td>
                                        <td>{{$value['created_at']}}</td>
                                    </tr>
                                @endforeach
                            @else
                                <td colspan="66" align="center">暂无数据</td>
                            @endif
                            </tbody>
                        </table>
                    </div>
                    <div class="layui-card-body ">
                        <div class="page">
                            {{$arr_data['page_link']}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection





